package com.jbit.userserver.controller;

import com.jbit.common.ResponseEntity;
import com.jbit.common.ResponseUtils;
import com.jbit.userserver.model.entity.MaterialProperty;
import com.jbit.userserver.service.MaterialPropertyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/materialProperty")
public class MaterialPropertyController {
    @Resource
    private MaterialPropertyService materialPropertyService;
    @GetMapping("/getAllList")
    public ResponseEntity<List<MaterialProperty>> getAllList(){
        return ResponseUtils.sendSuccess(materialPropertyService.getAllList());
    }
}
